package grimbo.goodwinfooty.processing;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class PrintUntypedListProcessor implements Processor {
	public String process(Map context) throws Exception {
		List list = (List) context
				.get(CSV2UntypedListProcessor.CTX_UNTYPED_LIST);
		for (Iterator it = list.iterator(); it.hasNext();) {
			String[] strs = (String[]) it.next();
			for (int i = 0; i < strs.length; i++) {
				if (i > 0) {
					System.out.print(",");
				}
				System.out.print(strs[i]);
			}
			System.out.println();
		}
		return null;
	}
}
